package com.gin.kotlin.no_gay_alliance.model.emoji

import android.os.Parcelable
import kotlinx.parcelize.Parcelize

/**
 * 通用表情包
 * @property name 表情包名
 * @property groups 所含分组
 * @constructor
 */
@Parcelize
data class GenericEmojiPackage(
    var name: String? = null,
    var groups: List<GenericEmojiGroup>? = null,
) : Parcelable {
    constructor(data: EmojiPackageModel) : this(
        name = data.name,
        groups = data.groups?.map { GenericEmojiGroup(it, data.name) }
    )
}
